package com.zhy.springcloud.service.imp;

import com.zhy.springcloud.dao.PaymentDao;
import com.zhy.springcloud.entities.Payment;
import com.zhy.springcloud.service.PaymentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author zhy
 * @Description 支付订单的实现类
 * @ClassName PaymentServiceImp
 * @Date 2020/11/12 18:36
 **/
@Service
public class PaymentServiceImp implements PaymentService {

    @Autowired
    private PaymentDao paymentDao;

    @Override
    public int create(Payment payment) {
        int i = paymentDao.create(payment);
        return i;
    }

    @Override
    public Payment getPaymentById(Long id) {
        Payment paymentById = paymentDao.getPaymentById(id);
        return paymentById;
    }


}
